package com.dyh.service;

import com.dyh.po.policy;

import java.util.List;

public interface policyService {
    /**
     * 查找所有用户
     * @return List
     */
    List<policy> findAllPolicy();

    /**
     * 通过年份查找政策
     * @param year
     * @return policy
     */
    policy findPolicyByYear(String year);
    /**
     * 修改政策信息
     * @param year
     * @param topmoney
     * @param toppercent
     * @return int
     */
    int editPolicy(String year,String topmoney,String toppercent);

    /**
     * 添加政策
     * @param year
     * @param topmoney
     * @param toppercent
     * @return int
     */
    int addPolicy(String year,String topmoney,String toppercent);

    int deletePolicy(String year);
}
